package com.leapp.sk.sever.personal

import com.example.util.ObjectProcessingUtil
import com.leapp.sk.bean.ConcatTeacherDataEntity
import com.leapp.sk.bean.response.personal.ConcatTeacherResponseEntity

/**
 * 联系老师逻辑处理类
 * @author  chaohaipeng  on 2018/8/23.
 */
class ConcatTeacherSever {
    private object mHolder {
        val instance = ConcatTeacherSever()
    }
    companion object {
        fun getInstance(): ConcatTeacherSever {
            return mHolder.instance
        }
    }

    /**
     * 获取联系老师数据
     */
    fun getContanctData(obj: ConcatTeacherResponseEntity?):List<ConcatTeacherDataEntity>{
        val contanctList = ObjectProcessingUtil.objMandatoryConversionClass(obj?.data, mutableListOf<ConcatTeacherDataEntity>())
        return contanctList
    }



}